package com.basic

import com.basic.Ranges.nums2

/**
 * @description:
 * @author: marshal
 * @date: 2021-08-09 5:08 PM
 */
object Ranges extends App {
  // 1~10
  val nums = 1 to 10
//  nums foreach println

  // 1~9
  val nums2 = 1 until 10
//  nums2 foreach println

  List(Range(0,10)) foreach println

}
